home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Essentials / Developer Essentials Nov 90 / DTS Sample Code / Apple II Sample Code / MPW IIGS SC / SC.024.Teach / teach.c / teach.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-25  |  1.1 KB  |  45 lines  |  [TEXT/MPS ]

  1. /**********************************************************************
  2. *
  3. * teach.c (Main Program) -- Version 3.0
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1986-1990
  7. * All Rights Reserved.
  8. *
  9. * Developer Technical Support Apple II Sample Code
  10. *
  11. * This file contains the Teach program.
  12. *
  13. **********************************************************************/
  14.  
  15. #include <types.h>
  16. #include <quickdraw.h>
  17. #include <locator.h>
  18. #include <memory.h>
  19.  
  20. extern char             test[80];
  21. extern unsigned int        userID;
  22.  
  23. main()
  24. {
  25.     Ref     initRef;        /* This holds the reference to the startstop record */
  26.  
  27.     initGlobals();            /* Initialize our globals. */
  28.     
  29.     userID = MMStartUp();    /* Start up and get ID from memory manager */
  30.     TLStartUp();                /* Start up the tool locator */
  31.  
  32.     initRef = StartUpTools(userID, refIsResource, 0x0001L);
  33.     /* Startup the tools using the new toolbox call */
  34.     if (!_toolErr) {
  35.         setupMenus();        /* Set up menus */
  36.         setupWindows();
  37.         InitCursor();        /* Make cursor show ready */
  38.         mainEvent();        /* Use application */
  39.     }
  40.  
  41.                             /* Let the toolbox shutdown the tools. */
  42.     ShutDownTools(refIsHandle, initRef);
  43.     TLShutDown();            /* ShutDown the Tool Locator */
  44. }
  45.